From: Florian Müllner Date: Thu, 3 Sep 2026 17:40:47 +0000 (+0200) Subject: lookingGlass: Destroy inspector when closed X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~6^2^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eb8872c1060733a7028803422c79515e836ddc05;p=gnome-shell.git lookingGlass: Destroy inspector when closed We create a new inspector each time the "inspect" button is clicked, but never destroy the old one. Part-of: (cherry picked from commit 669f9485a6a011b5c82c7c45c600502654c1b060) --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index ff24e6b52..1ae08aafb 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -1368,6 +1368,7 @@ class LookingGlass extends St.BoxLayout { inspector.connect('closed', () => { this.show(); global.stage.set_key_focus(this._entry); + inspector.destroy(); }); this.hide(); return Clutter.EVENT_STOP;